package com.ttdc.service;

import java.util.List;

import org.apache.catalina.core.ApplicationContext;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.ttdc.mapper.CuisineMapper;
import com.ttdc.pojo.Cuisine;
import com.ttdc.pojo.CuisineExample;
@Service
public class CuisineServiceImpl implements CuisineService {
	@Autowired
	private CuisineMapper cuisineMapper;
	private CuisineExample example;
	private ApplicationContext applicationContext;
	
	@Override
	public int countByExample(CuisineExample example) {
		// TODO Auto-generated method stub
		return cuisineMapper.countByExample(example);
	}

	@Override
	public int deleteByExample(CuisineExample example) {
		// TODO Auto-generated method stub
		return cuisineMapper.deleteByExample(example);
	}

	@Override
	public int deleteByPrimaryKey(Integer cxId) {
		// TODO Auto-generated method stub
		return cuisineMapper.deleteByPrimaryKey(cxId);
	}

	@Override
	public int insert(Cuisine record) {
		// TODO Auto-generated method stub
		return cuisineMapper.insert(record);
	}

	@Override
	public int insertSelective(Cuisine record) {
		// TODO Auto-generated method stub
		return cuisineMapper.insertSelective(record);
	}

	@Override
	public List<Cuisine> selectByExample(CuisineExample example) {
		// TODO Auto-generated method stub
		return cuisineMapper.selectByExample(example);
	}

	@Override
	public Cuisine selectByPrimaryKey(Integer cxId) {
		// TODO Auto-generated method stub
		return cuisineMapper.selectByPrimaryKey(cxId);
	}

	@Override
	public int updateByExampleSelective(Cuisine record, CuisineExample example) {
		// TODO Auto-generated method stub
		return cuisineMapper.updateByExampleSelective(record, example);
	}

	@Override
	public int updateByExample(Cuisine record, CuisineExample example) {
		// TODO Auto-generated method stub
		return cuisineMapper.updateByExample(record, example);
	}

	@Override
	public int updateByPrimaryKeySelective(Cuisine record) {
		// TODO Auto-generated method stub
		return cuisineMapper.updateByPrimaryKeySelective(record);
	}

	@Override
	public int updateByPrimaryKey(Cuisine record) {
		// TODO Auto-generated method stub
		return cuisineMapper.updateByPrimaryKey(record);
	}

	@Override
	public List<Cuisine> selectByAll() {
		// TODO Auto-generated method stub
		return cuisineMapper.selectByAll();
	}
	

}
